// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.common.mybatis.handlers.SysFileListTypeHandler;
import com.fowo.api.sys.entity.SysFile;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * TransactionReceivableReportManagement
 */
@DS("ds24")
@Getter
@Setter
@TableName(
  value = "transaction_receivable_report_management",
  autoResultMap = true
)
@Schema(title = "应收交易报告管理")
public class TransactionReceivableReportManagement implements Serializable {

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 国家
   */
  @TableField(value = "`station`")
  @JoinField(SysRegion.class)
  @Schema(title = "国家")
  private Long station;

  /**
   * 店铺
   */
  @TableField(value = "`sid`")
  @JoinField(ShopInfo.class)
  @Schema(title = "店铺")
  private Long sid;

  /**
   * 账单时间
   */
  @TableField(value = "`billing_time`")
  @Schema(title = "账单时间")
  private java.util.Date billingTime;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 报告类型
   */
  @TableField(value = "`account_type`")
  @Schema(title = "报告类型")
  private String accountType;

  /**
   * 账单时区
   */
  @TableField(value = "`billing_time_zone`")
  @Schema(title = "账单时区")
  private String billingTimeZone;

  /**
   * 账单金额
   */
  @TableField(value = "`amount`")
  @Schema(title = "账单金额")
  private java.math.BigDecimal amount;

  /**
   * 币种
   */
  @TableField(value = "`currency`")
  @Schema(title = "币种")
  private String currency;

  /**
   * 上传时间
   */
  @TableField(value = "`upload_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "上传时间")
  private java.util.Date uploadTime;

  /**
   * 状态 (0 - 未导入; 1 - 已导入; 2 - 解析成功; 3 - 解析失败; 4 - 已对账; )
   */
  @TableField(value = "`state`")
  @Schema(title = "状态")
  private String state;

  /**
   * summary报告
   */
  @TableField(
    value = "`summary_report`",
    typeHandler = SysFileListTypeHandler.class
  )
  @Schema(title = "summary报告")
  private List<SysFile> summaryReport;

  /**
   * transaction报告
   */
  @TableField(
    value = "`transaction_report`",
    typeHandler = SysFileListTypeHandler.class
  )
  @Schema(title = "transaction报告")
  private List<SysFile> transactionReport;

  /**
   * 收入
   */
  @TableField(value = "`summaryincome`")
  @Schema(title = "收入")
  private java.math.BigDecimal summaryincome;

  /**
   * 支出
   */
  @TableField(value = "`summaryexpenses`")
  @Schema(title = "支出")
  private java.math.BigDecimal summaryexpenses;

  /**
   * 转移
   */
  @TableField(value = "`summarytransfers`")
  @Schema(title = "转移")
  private java.math.BigDecimal summarytransfers;

  /**
   * 税费
   */
  @TableField(value = "`summarytax`")
  @Schema(title = "税费")
  private java.math.BigDecimal summarytax;

  /**
   * 账单日期文本
   */
  @TableField(value = "`billing_timestring`")
  @Schema(title = "账单日期文本")
  private String billingTimestring;
}
